﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DongFangGuoKai.WMSPlatform.Core.Migrations
{
    public partial class updateMaterialId : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<long>(
                name: "MaterialId",
                table: "t_UnitConvertFigre",
                type: "bigint",
                nullable: false,
                comment: "物料Id",
                oldClrType: typeof(int),
                oldType: "int",
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<long>(
                name: "MaterialId",
                table: "t_TransferBinOrderDetail",
                type: "bigint",
                nullable: true,
                comment: "物流ID",
                oldClrType: typeof(int),
                oldType: "int",
                oldNullable: true,
                oldComment: "物流ID");

            migrationBuilder.AlterColumn<long>(
                name: "MaterialId",
                table: "t_TransferBinGoodsDetail",
                type: "bigint",
                nullable: true,
                comment: "物料ID",
                oldClrType: typeof(int),
                oldType: "int",
                oldNullable: true,
                oldComment: "物料ID");

            migrationBuilder.AlterColumn<long>(
                name: "MaterialId",
                table: "t_StocktakingOrderDetail",
                type: "bigint",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(int),
                oldType: "int",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<long>(
                name: "MaterialId",
                table: "t_StocktakingOrder",
                type: "bigint",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(int),
                oldType: "int",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<long>(
                name: "MaterialId",
                table: "t_StocktakeResultRecord",
                type: "bigint",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(int),
                oldType: "int",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<long>(
                name: "MaterialId",
                table: "t_StationData",
                type: "bigint",
                nullable: false,
                comment: "物料Id",
                oldClrType: typeof(int),
                oldType: "int",
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<long>(
                name: "MaterialId",
                table: "t_StackingStorage",
                type: "bigint",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(int),
                oldType: "int",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<long>(
                name: "MaterialId",
                table: "t_ShippingOrderDetail",
                type: "bigint",
                nullable: false,
                comment: "物料ID",
                oldClrType: typeof(int),
                oldType: "int",
                oldComment: "物料ID");

            migrationBuilder.AlterColumn<long>(
                name: "MaterialId",
                table: "t_ShippingLockCell",
                type: "bigint",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(int),
                oldType: "int",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<long>(
                name: "MaterialId",
                table: "t_ShippingGoodsDetail",
                type: "bigint",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(int),
                oldType: "int",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<long>(
                name: "MaterialId",
                table: "t_ScannedPackageDetail",
                type: "bigint",
                nullable: true,
                oldClrType: typeof(int),
                oldType: "int",
                oldNullable: true);

            migrationBuilder.AlterColumn<long>(
                name: "MaterialId",
                table: "t_ReceivingOrderDetail",
                type: "bigint",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(int),
                oldType: "int",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<long>(
                name: "MaterialId",
                table: "t_ReceivingBillDetail",
                type: "bigint",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(int),
                oldType: "int",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<long>(
                name: "MaterialId",
                table: "t_PutawayOrder",
                type: "bigint",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(int),
                oldType: "int",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<long>(
                name: "MaterialId",
                table: "t_PickingStationData",
                type: "bigint",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(int),
                oldType: "int",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<long>(
                name: "MaterialId",
                table: "t_PickingOrderDetail",
                type: "bigint",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(int),
                oldType: "int",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<long>(
                name: "MaterialId",
                table: "t_PickingOrder",
                type: "bigint",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(int),
                oldType: "int",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<long>(
                name: "MaterialId",
                table: "t_PackageDetail",
                type: "bigint",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(int),
                oldType: "int",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<long>(
                name: "MaterialId",
                table: "t_MultPallet",
                type: "bigint",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(int),
                oldType: "int",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<long>(
                name: "MaterialId",
                table: "t_MaterialWiki",
                type: "bigint",
                nullable: false,
                comment: "物料Id",
                oldClrType: typeof(int),
                oldType: "int",
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<long>(
                name: "MaterialId",
                table: "t_MaterialPackage",
                type: "bigint",
                nullable: false,
                comment: "物料Id",
                oldClrType: typeof(int),
                oldType: "int",
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<long>(
                name: "MaterialId",
                table: "t_MaterialKey",
                type: "bigint",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(int),
                oldType: "int",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<long>(
                name: "MaterialId",
                table: "t_MaterialExtData",
                type: "bigint",
                nullable: false,
                oldClrType: typeof(int),
                oldType: "int");

            migrationBuilder.AlterColumn<long>(
                name: "MaterialId",
                table: "t_MaterialBarcode",
                type: "bigint",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(int),
                oldType: "int",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<long>(
                name: "MaterialId",
                table: "t_InventoryLog",
                type: "bigint",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(int),
                oldType: "int",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<long>(
                name: "MaterialId",
                table: "t_InventoryAdjust",
                type: "bigint",
                nullable: true,
                comment: "物料Id\r\n",
                oldClrType: typeof(int),
                oldType: "int",
                oldNullable: true,
                oldComment: "物料Id\r\n");

            migrationBuilder.AlterColumn<long>(
                name: "MaterialId",
                table: "t_Inventory",
                type: "bigint",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(int),
                oldType: "int",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<long>(
                name: "MaterialId",
                table: "t_DisasterMaterial",
                type: "bigint",
                nullable: true,
                comment: "物资Id",
                oldClrType: typeof(int),
                oldType: "int",
                oldNullable: true,
                oldComment: "物资Id");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<int>(
                name: "MaterialId",
                table: "t_UnitConvertFigre",
                type: "int",
                nullable: false,
                comment: "物料Id",
                oldClrType: typeof(long),
                oldType: "bigint",
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<int>(
                name: "MaterialId",
                table: "t_TransferBinOrderDetail",
                type: "int",
                nullable: true,
                comment: "物流ID",
                oldClrType: typeof(long),
                oldType: "bigint",
                oldNullable: true,
                oldComment: "物流ID");

            migrationBuilder.AlterColumn<int>(
                name: "MaterialId",
                table: "t_TransferBinGoodsDetail",
                type: "int",
                nullable: true,
                comment: "物料ID",
                oldClrType: typeof(long),
                oldType: "bigint",
                oldNullable: true,
                oldComment: "物料ID");

            migrationBuilder.AlterColumn<int>(
                name: "MaterialId",
                table: "t_StocktakingOrderDetail",
                type: "int",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(long),
                oldType: "bigint",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<int>(
                name: "MaterialId",
                table: "t_StocktakingOrder",
                type: "int",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(long),
                oldType: "bigint",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<int>(
                name: "MaterialId",
                table: "t_StocktakeResultRecord",
                type: "int",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(long),
                oldType: "bigint",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<int>(
                name: "MaterialId",
                table: "t_StationData",
                type: "int",
                nullable: false,
                comment: "物料Id",
                oldClrType: typeof(long),
                oldType: "bigint",
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<int>(
                name: "MaterialId",
                table: "t_StackingStorage",
                type: "int",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(long),
                oldType: "bigint",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<int>(
                name: "MaterialId",
                table: "t_ShippingOrderDetail",
                type: "int",
                nullable: false,
                comment: "物料ID",
                oldClrType: typeof(long),
                oldType: "bigint",
                oldComment: "物料ID");

            migrationBuilder.AlterColumn<int>(
                name: "MaterialId",
                table: "t_ShippingLockCell",
                type: "int",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(long),
                oldType: "bigint",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<int>(
                name: "MaterialId",
                table: "t_ShippingGoodsDetail",
                type: "int",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(long),
                oldType: "bigint",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<int>(
                name: "MaterialId",
                table: "t_ScannedPackageDetail",
                type: "int",
                nullable: true,
                oldClrType: typeof(long),
                oldType: "bigint",
                oldNullable: true);

            migrationBuilder.AlterColumn<int>(
                name: "MaterialId",
                table: "t_ReceivingOrderDetail",
                type: "int",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(long),
                oldType: "bigint",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<int>(
                name: "MaterialId",
                table: "t_ReceivingBillDetail",
                type: "int",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(long),
                oldType: "bigint",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<int>(
                name: "MaterialId",
                table: "t_PutawayOrder",
                type: "int",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(long),
                oldType: "bigint",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<int>(
                name: "MaterialId",
                table: "t_PickingStationData",
                type: "int",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(long),
                oldType: "bigint",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<int>(
                name: "MaterialId",
                table: "t_PickingOrderDetail",
                type: "int",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(long),
                oldType: "bigint",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<int>(
                name: "MaterialId",
                table: "t_PickingOrder",
                type: "int",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(long),
                oldType: "bigint",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<int>(
                name: "MaterialId",
                table: "t_PackageDetail",
                type: "int",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(long),
                oldType: "bigint",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<int>(
                name: "MaterialId",
                table: "t_MultPallet",
                type: "int",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(long),
                oldType: "bigint",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<int>(
                name: "MaterialId",
                table: "t_MaterialWiki",
                type: "int",
                nullable: false,
                comment: "物料Id",
                oldClrType: typeof(long),
                oldType: "bigint",
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<int>(
                name: "MaterialId",
                table: "t_MaterialPackage",
                type: "int",
                nullable: false,
                comment: "物料Id",
                oldClrType: typeof(long),
                oldType: "bigint",
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<int>(
                name: "MaterialId",
                table: "t_MaterialKey",
                type: "int",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(long),
                oldType: "bigint",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<int>(
                name: "MaterialId",
                table: "t_MaterialExtData",
                type: "int",
                nullable: false,
                oldClrType: typeof(long),
                oldType: "bigint");

            migrationBuilder.AlterColumn<int>(
                name: "MaterialId",
                table: "t_MaterialBarcode",
                type: "int",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(long),
                oldType: "bigint",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<int>(
                name: "MaterialId",
                table: "t_InventoryLog",
                type: "int",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(long),
                oldType: "bigint",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<int>(
                name: "MaterialId",
                table: "t_InventoryAdjust",
                type: "int",
                nullable: true,
                comment: "物料Id\r\n",
                oldClrType: typeof(long),
                oldType: "bigint",
                oldNullable: true,
                oldComment: "物料Id\r\n");

            migrationBuilder.AlterColumn<int>(
                name: "MaterialId",
                table: "t_Inventory",
                type: "int",
                nullable: true,
                comment: "物料Id",
                oldClrType: typeof(long),
                oldType: "bigint",
                oldNullable: true,
                oldComment: "物料Id");

            migrationBuilder.AlterColumn<int>(
                name: "MaterialId",
                table: "t_DisasterMaterial",
                type: "int",
                nullable: true,
                comment: "物资Id",
                oldClrType: typeof(long),
                oldType: "bigint",
                oldNullable: true,
                oldComment: "物资Id");
        }
    }
}
